package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.Apptype;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DrllInfoMapper;
import com.ruoyi.system.domain.DrllInfo;
import com.ruoyi.system.service.IDrllInfoService;

/**
 * 驱动类型Service业务层处理
 * 
 * @author yaozh
 * @date 2024-02-24
 */
@Service
public class DrllInfoServiceImpl implements IDrllInfoService 
{
    @Autowired
    private DrllInfoMapper drllInfoMapper;

    /**
     * 查询驱动类型
     * 
     * @param drllid 驱动类型主键
     * @return 驱动类型
     */
    @Override
    public DrllInfo selectDrllInfoByDrllid(Long drllid,String dbName)
    {
        return drllInfoMapper.selectDrllInfoByDrllid(drllid,dbName);
    }

    /**
     * 查询驱动类型列表
     * 
     * @param drllInfo 驱动类型
     * @return 驱动类型
     */
    @Override
    public List<DrllInfo> selectDrllInfoList(DrllInfo drllInfo,String dbName)
    {
        return drllInfoMapper.selectDrllInfoList(drllInfo,dbName);
    }

    @Override
    public List<DrllInfo> selectDrllInfoForAll(String dbName) {
        return drllInfoMapper.selectDrllInfoForAll(dbName);
    }

    /**
     * 新增驱动类型
     * 
     * @param drllInfo 驱动类型
     * @return 结果
     */
    @Override
    public int insertDrllInfo(DrllInfo drllInfo,String dbName)
    {
        return drllInfoMapper.insertDrllInfo(drllInfo,dbName);
    }

    /**
     * 修改驱动类型
     * 
     * @param drllInfo 驱动类型
     * @return 结果
     */
    @Override
    public int updateDrllInfo(DrllInfo drllInfo,String dbName)
    {
        return drllInfoMapper.updateDrllInfo(drllInfo,dbName);
    }

    /**
     * 批量删除驱动类型
     * 
     * @param drllids 需要删除的驱动类型主键
     * @return 结果
     */
    @Override
    public int deleteDrllInfoByDrllids(Long[] drllids,String dbName)
    {
        return drllInfoMapper.deleteDrllInfoByDrllids(drllids,dbName);
    }

    /**
     * 删除驱动类型信息
     * 
     * @param drllid 驱动类型主键
     * @return 结果
     */
    @Override
    public int deleteDrllInfoByDrllid(Long drllid,String dbName)
    {
        return drllInfoMapper.deleteDrllInfoByDrllid(drllid,dbName);
    }
}
